#ifndef __MC_FOC_H_
#define __MC_FOC_H_

#ifdef __cplusplus
extern "C"{
#endif

#include "mc_regulator.h"
#include "mc_pwm.h"

typedef struct{
    pSignalChain_t  pSignalChain;
    
    s16             hElAngle;
    
    PropInte_t      PITorq;
    PropInte_t      PIFlux;
    
    PulseWidthModule_t PWM;
} FieldOrientedControl_t, *pFieldOrientedControl_t; 

void MC_FOC(void);
void CircleLimit(pDQ_t pDQ_Handle, s16* pSprt, s16 hRate);
#ifdef __cplusplus
}
#endif

#endif
